package com.wuwei.service;


import com.wuwei.pojo.CommonResult;
import com.wuwei.pojo.Payment;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @description: PaymentFeignService <br>
 * @date: 2021/2/8 21:39 <br>
 * @author: wuwei666 <br>
 * @version: 1.0 <br>
 */
@Component
@FeignClient(value = "CLOUD-PROVIDER")
public interface PaymentFeignService {
    @GetMapping("/payment/get/{id}")
    public CommonResult<Payment> getPaymentById(@PathVariable("id") Long id);
}
